﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Tyshka.Subroutines.ViewModels
{
    public class SubEditModel
    {
        public Int64 Id { get; set; }
        public String Code { get; set; }
        public String Description { get; set; }
        public String Name { get; set; }
        public List<InputRegisterDataWrapper> InputRegisters = new List<InputRegisterDataWrapper>();
        public List<StackWrapper> Stacks = new List<StackWrapper>();
        public List<InputRegisterDataWrapper> OutputRegisters = new List<InputRegisterDataWrapper>();
        public String TagLine { get; set; }
    }

    public class InputRegisterDataWrapper
    {
        public long RegisterId { get; set; }
        public Boolean IsUsed { get; set; }
        public String Name { get; set; }
        public String Comment { get; set; }
    }

    public class StackWrapper
    {
        public int Offset { get; set; }
        public String Comment { get; set; }
    }
}